From: Simon Schampijer Date: Thu, 9 Nov 2017 17:01:58 +0000 (+0100) Subject: remoteSearch: exclude content from hidden apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~157 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3cbdf4f9a57db9e2c09270eeb75ed40d9b412607;p=gnome-shell.git remoteSearch: exclude content from hidden apps Some apps may be configured as NoDisplay=true, but still install a search provider. Like we do elsewhere, exclude them from showing up in the UI. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/568 --- diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index 1b9186bdc..ce8c4d09b 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -89,6 +89,8 @@ function loadRemoteSearchProviders(searchSettings, callback) { try { let desktopId = keyfile.get_string(group, 'DesktopId'); appInfo = Gio.DesktopAppInfo.new(desktopId); + if (!appInfo.should_show()) + return; } catch (e) { log('Ignoring search provider ' + path + ': missing DesktopId'); return;